# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=gping
pkgver=1.3.2
pkgrel=0
pkgdesc="Ping, but with a graph"
url="https://github.com/orf/gping"
license="MIT"
arch="all !s390x !riscv64" # blocked by rust/cargo
makedepends="cargo"
source="https://github.com/orf/gping/archive/gping-v$pkgver/gping-$pkgver.tar.gz"
builddir="$srcdir/gping-gping-v$pkgver"

build() {
	cargo build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	install -Dm755 target/release/gping "$pkgdir"/usr/bin/gping
}

sha512sums="
645da9d05177d63f0410497f954fc60b46e04b9ad142b9061641a41f3b5a40ac24bd40e27feaa175519dfb3da44662026fd92ed2a83d6a9ee052dd89650ceccd  gping-1.3.2.tar.gz
"
